package com.gaga.console.core.service;

import com.gaga.console.base.entity.PageParams;
import com.gaga.console.base.service.ISuperService;
import com.gaga.console.core.entity.SysDatabase;
import com.gaga.metadata.entity.database.DataBaseSchema;
import com.gaga.metadata.entity.database.DataBaseTable;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liujia
 * @since 2022-06-01
 */
public interface SysDatabaseService extends ISuperService<SysDatabase> {

    boolean testConnection(Long id);

    List<DataBaseTable> getTableListBySchema(PageParams<SysDatabase> id);

    List<DataBaseTable> getTableList(Long id);

    List<DataBaseSchema> getSchemaList(Long id);

    List<DataBaseSchema> getSchemaAndTableList(Long id);

}
